<template>
  <h2 ref="title2">你好</h2>
  <button @click="showLog">输出h2</button>
  <Person ref="ren"/>
</template>

<script lang="ts" setup name="App">
import Person from "@/components/Person.vue";
import {ref} from "vue";

// 用于储存ref标记的内容
let title2 = ref();
let ren = ref();

function showLog() {
  console.log(ren.value)
}

</script>
